<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>本地存储和JSON</title>
  <link rel="stylesheet" href="../css/common.css">
</head>

<body>
  <div>
    <input type="text" id="txtInfo" placeholder="信息">
    <button id="btnSave">保存</button>
    <button id="btnLoad">读取</button>
    <button id="btnDel">删除</button>
    <span id="spInfo"></span>
  </div>
  <hr>
  <div>
    <button id="btnJson">JSON对象</button>
    <pre id="preJson"></pre>
    <div id="divJson"></div>
  </div>
  <!-- 一个json配合本地存储的应用 -->
  <div>
    <input type="text" id="txtName" placeholder="姓名">
    <input type="text" id="txtSex" placeholder="性别">
    <button id="btnSaveUser">保存用户信息</button>
    <button id="btnLoadUser">读取用户信息</button>
    <pre id="preUser"></pre>
  </div>

  <script src="js/b02.js"></script>
</body>

</html>